package com.kob.backend.controller.product;

import com.kob.backend.pojo.product;
import com.kob.backend.service.product.ProductInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ProductInfoController {
    @Autowired
    private  ProductInfoService productInfoService;
    @GetMapping("/product/info/")
    public List<product> getproductinfo(){
        return productInfoService.getproductinfo();
    }
}
